home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / utility / horst_2.zip / SHUTDOWN.BAT < prev    next >
DOS Batch File  |  1995-12-18  |  1KB  |  57 lines

  1. @echo off
  2. cls
  3. ::--- A batch file to perform routine housekeeping tasks before shutting
  4. ::--- down the computer at the end of the day.
  5. ::
  6. ::--- check that both floppy disk drives are empty
  7. set drive=A
  8. :AGAIN
  9. dready %drive%
  10. if errorlevel 1 goto NEXT_DRIVE
  11. ::
  12. ::--- beep; character echoed is Ctrl-G
  13. echo 
  14. echo.
  15. echo Please check whether there is a disk in drive %drive%:
  16. pause
  17. goto AGAIN
  18. ::
  19. :NEXT_DRIVE
  20. if [%drive%]==[B] goto CONTINUE
  21. set drive=B
  22. goto AGAIN
  23. ::
  24. :CONTINUE
  25. set drive=
  26. echo.
  27. ::
  28. ::--- clear any pending writes-to-disk
  29. echo Flushing the cache ...
  30. smartdrv /C
  31. echo.
  32. ::
  33. ::--- fr is Norton's Format Recover
  34. echo Saving FAT information, please wait ...
  35. fr /save
  36. echo.
  37. Echo PLEASE TURN THE PRINTER OFF !
  38. echo.
  39. echo.
  40. pause
  41. echo.
  42. echo.
  43. ::--- use some warning colours by ANSI calls
  44. echo 
  45. echo ╔═════════════════════════════════════════════════════════════════════════╗
  46. echo ║ When you press another key, the computer will park its hard disk heads. ║
  47. echo ║ Please wait until it reports that this is complete before switching off·║
  48. echo ║ Also, please turn it off at the wall socket (under the table) to ensure·║
  49. echo ║ isolating both computer and modem.                         Thank you ..·║
  50. echo ╚═════════════════════════════════════════════════════════════════════════╝
  51. echo 
  52. echo.
  53. echo.
  54. pause
  55. cd\junk
  56. park
  57.